home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 2.iso / dist / fw_geekosphere.idb / usr / freeware / src / geekosphere / patches.z / patches
Text File  |  2000-07-20  |  44KB  |  1,335 lines

  1. --- ./main.c    Thu Dec 16 20:50:24 1999
  2. +++ ../geekosphere-0.7/./main.c    Mon Jul 10 17:50:45 2000
  3. @@ -123,10 +123,96 @@
  4.      return fps;
  5.  }
  6.  
  7. +/*
  8. + * Create a GLX window with the specified width and height.
  9. + *
  10. + * GLX code based on example opengl_spectrum XMMS plugin.
  11. + *
  12. + */
  13. +
  14. +static Window create_window(int width, int height)
  15. +{    
  16. +    int attr_list[] = { GLX_RGBA,
  17. +            GLX_DEPTH_SIZE, 16, 
  18. +            GLX_DOUBLEBUFFER,
  19. +            None };
  20. +    XSetWindowAttributes attr;
  21. +    unsigned long mask;
  22. +    Window root, win;
  23. +    XVisualInfo *visinfo;
  24. +    Atom wm_protocols[1];
  25. +    
  26. +    if ((dpy = XOpenDisplay(NULL)) == NULL)
  27. +    return 0;
  28. +
  29. +    screen_number = DefaultScreen(dpy);
  30. +    root = RootWindow(dpy, screen_number);
  31. +    root_x = DisplayWidth(dpy, screen_number);
  32. +    root_y = DisplayHeight(dpy, screen_number);
  33. +
  34. +    if ((visinfo = glXChooseVisual(dpy, screen_number, attr_list)) == NULL)
  35. +    return 0;
  36. +    
  37. +    attr.background_pixel = 0;
  38. +    attr.border_pixel = 0;
  39. +    attr.colormap = colormap = XCreateColormap(dpy, root, visinfo->visual, AllocNone);
  40. +    attr.event_mask = StructureNotifyMask | KeyPressMask;
  41. +    mask = CWBackPixel | CWBorderPixel | CWColormap | CWEventMask;
  42. +    win = XCreateWindow(dpy, root, 0, 0, width, height,
  43. +            0, visinfo->depth, InputOutput,
  44. +            visinfo->visual, mask, &attr);
  45. +
  46. +    XmbSetWMProperties(dpy, win, "Geekosphere " VERSION,
  47. +               "Geekosphere " VERSION, NULL, 0, NULL, NULL,
  48. +               NULL);
  49. +    wm_delete_window_atom = wm_protocols[0] = XInternAtom(dpy,
  50. +                              "WM_DELETE_WINDOW",
  51. +                              False);
  52. +
  53. +    XSetWMProtocols(dpy, win, wm_protocols, 1);
  54. +
  55. +    glxcontext = glXCreateContext(dpy, visinfo, NULL, True);
  56. +
  57. +    glXMakeCurrent(dpy, win, glxcontext);
  58. +
  59. +    return win;
  60. +}
  61. +
  62.  void *draw_thread_func(void *arg)
  63.  {
  64.      Bool configured = FALSE;
  65.  
  66. +    window = create_window(gkos_config->winw, gkos_config->winh);
  67. +
  68. +    XMapWindow(dpy, window);
  69. +
  70. +    if (gkos_config->tdfx_mode)
  71. +    XMoveResizeWindow(dpy, window, 0, 0, root_x, root_y);
  72. +
  73. +    glClearColor(0.0, 0.0, 0.0, 0.0);
  74. +    glColor3f(1.0, 1.0, 1.0);
  75. +    glDepthFunc(GL_LESS);
  76. +    glShadeModel(GL_SMOOTH);
  77. +    glEnable(GL_LIGHTING);
  78. +    glEnable(GL_AUTO_NORMAL);
  79. +    glEnable(GL_NORMALIZE);
  80. +    glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
  81. +
  82. +    srand(time(NULL));
  83. +    gettimeofday(&last_time, NULL);
  84. +
  85. +    gkos_going = 1;
  86. +
  87. +    gkos_new_camera();
  88. +    gkos_init_lights();
  89. +    gkos_init_textures();
  90. +    gkos_init_objects();
  91. +
  92. +    /* gkos_fun_nurb(); */
  93. +    /* gkos_cobb_nurbsphere(); */
  94. +    gkos_sweep_sphere(3.0);
  95. +    /* gkos_sweep_chessman(); */
  96. +
  97.  #ifdef HAVE_SCHED_SETSCHEDULER
  98.      if(xmms_check_realtime_priority()) {
  99.      struct sched_param sparam;
  100. @@ -208,61 +294,26 @@
  101.      if(configured)
  102.          idle();
  103.      }
  104. -    pthread_exit(NULL);
  105. -}
  106. -
  107. -/*
  108. - * Create a GLX window with the specified width and height.
  109. - *
  110. - * GLX code based on example opengl_spectrum XMMS plugin.
  111. - *
  112. - */
  113. -
  114. -static Window create_window(int width, int height)
  115. -{    
  116. -    int attr_list[] = { GLX_RGBA,
  117. -            GLX_DEPTH_SIZE, 16, 
  118. -            GLX_DOUBLEBUFFER,
  119. -            None };
  120. -    XSetWindowAttributes attr;
  121. -    unsigned long mask;
  122. -    Window root, win;
  123. -    XVisualInfo *visinfo;
  124. -    Atom wm_protocols[1];
  125. -    
  126. -    screen_number = DefaultScreen(dpy);
  127. -    root = RootWindow(dpy, screen_number);
  128. -    root_x = DisplayWidth(dpy, screen_number);
  129. -    root_y = DisplayHeight(dpy, screen_number);
  130. -
  131. -    visinfo = glXChooseVisual(dpy, screen_number, attr_list);
  132. -    
  133. -    if(!visinfo)
  134. -    return 0;
  135. -    
  136. -    attr.background_pixel = 0;
  137. -    attr.border_pixel = 0;
  138. -    attr.colormap = colormap = XCreateColormap(dpy, root, visinfo->visual, AllocNone);
  139. -    attr.event_mask = StructureNotifyMask | KeyPressMask;
  140. -    mask = CWBackPixel | CWBorderPixel | CWColormap | CWEventMask;
  141. -    win = XCreateWindow(dpy, root, 0, 0, width, height,
  142. -            0, visinfo->depth, InputOutput,
  143. -            visinfo->visual, mask, &attr);
  144. -
  145. -    XmbSetWMProperties(dpy, win, "Geekosphere " VERSION,
  146. -               "Geekosphere " VERSION, NULL, 0, NULL, NULL,
  147. -               NULL);
  148. -    wm_delete_window_atom = wm_protocols[0] = XInternAtom(dpy,
  149. -                              "WM_DELETE_WINDOW",
  150. -                              False);
  151.  
  152. -    XSetWMProtocols(dpy, win, wm_protocols, 1);
  153. -
  154. -    glxcontext = glXCreateContext(dpy, visinfo, NULL, True);
  155. +    if (window)
  156. +    {
  157. +        if (grabbed_pointer)
  158. +        {
  159. +            XUngrabPointer(dpy, CurrentTime);
  160. +            grabbed_pointer = FALSE;
  161. +        }
  162.  
  163. -    glXMakeCurrent(dpy, win, glxcontext);
  164. +        XDestroyWindow(dpy, window);
  165. +        window = 0;
  166. +    }
  167. +    if (glxcontext)
  168. +    {
  169. +        glXMakeCurrent(dpy, 0, NULL);
  170. +        glXDestroyContext(dpy, glxcontext);
  171. +        glxcontext = NULL;
  172. +    }
  173.  
  174. -    return win;
  175. +    pthread_exit(NULL);
  176.  }
  177.  
  178.  static void start_display(void)
  179. @@ -274,38 +325,6 @@
  180.      unsetenv("MESA_GLX_FX");
  181.  #endif
  182.  
  183. -    dpy = XOpenDisplay(NULL);
  184. -    window = create_window(gkos_config->winw, gkos_config->winh);
  185. -
  186. -    XMapWindow(dpy, window);
  187. -
  188. -    if (gkos_config->tdfx_mode)
  189. -    XMoveResizeWindow(dpy, window, 0, 0, root_x, root_y);
  190. -
  191. -    glClearColor(0.0, 0.0, 0.0, 0.0);
  192. -    glColor3f(1.0, 1.0, 1.0);
  193. -    glDepthFunc(GL_LESS);
  194. -    glShadeModel(GL_SMOOTH);
  195. -    glEnable(GL_LIGHTING);
  196. -    glEnable(GL_AUTO_NORMAL);
  197. -    glEnable(GL_NORMALIZE);
  198. -    glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
  199. -
  200. -    srand(time(NULL));
  201. -    gettimeofday(&last_time, NULL);
  202. -
  203. -    gkos_going = 1;
  204. -
  205. -    gkos_new_camera();
  206. -    gkos_init_lights();
  207. -    gkos_init_textures();
  208. -    gkos_init_objects();
  209. -
  210. -    //gkos_fun_nurb();
  211. -    //gkos_cobb_nurbsphere();
  212. -    gkos_sweep_sphere(3.0);
  213. -    //gkos_sweep_chessman();
  214. -
  215.      pthread_create(&draw_thread, NULL, draw_thread_func, NULL);
  216.  }
  217.  
  218. @@ -451,6 +470,8 @@
  219.      glXSwapBuffers(dpy, window);
  220.  }
  221.  
  222. +/*
  223.  // Local variables:
  224.  // c-file-style:"cc-mode"
  225.  // End:
  226. +*/
  227. --- ./Makefile.am    Thu Dec 16 19:04:51 1999
  228. +++ ../geekosphere-0.7/./Makefile.am    Mon Jul 10 16:35:28 2000
  229. @@ -8,6 +8,6 @@
  230.  libgeekosphere_la_LDFLAGS = -module -avoid-version
  231.  LIBS = @XMMS_LIBS@ @OPENGL_LIBS@ @PTHREAD_LIBS@
  232.  
  233. -CFLAGS = -O2 -DDATADIR=\"@XMMS_DATA_DIR@\" @XMMS_CFLAGS@
  234. +CFLAGS = -O2 -DDATADIR=\"$(geekospheredir)\" @XMMS_CFLAGS@
  235.  
  236.  libgeekosphere_la_SOURCES = about.c camera.c config.c interface.c light.c main.c material.c nurbs.c object.c rgb.c support.c texture.c callbacks.h interface.h material.h prog.h rgb.h support.h
  237. --- ./Makefile.in    Thu Dec 16 19:04:51 1999
  238. +++ ../geekosphere-0.7/./Makefile.in    Mon Jul 10 16:35:36 2000
  239. @@ -101,7 +101,7 @@
  240.  libgeekosphere_la_LDFLAGS = -module -avoid-version
  241.  LIBS = @XMMS_LIBS@ @OPENGL_LIBS@ @PTHREAD_LIBS@
  242.  
  243. -CFLAGS = -O2 -DDATADIR=\"@XMMS_DATA_DIR@\" @XMMS_CFLAGS@
  244. +CFLAGS = -O2 -DDATADIR=\"$(geekospheredir)\" @XMMS_CFLAGS@
  245.  
  246.  libgeekosphere_la_SOURCES = about.c camera.c config.c interface.c light.c main.c material.c nurbs.c object.c rgb.c support.c texture.c callbacks.h interface.h material.h prog.h rgb.h support.h
  247.  ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  248. @@ -335,22 +335,12 @@
  249.  
  250.  %.o: %.c
  251.      @echo '$(COMPILE) -c $<'; \
  252. -    $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  253. -    @-cp .deps/$(*F).pp .deps/$(*F).P; \
  254. -    tr ' ' '\012' < .deps/$(*F).pp \
  255. -      | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  256. -        >> .deps/$(*F).P; \
  257. -    rm .deps/$(*F).pp
  258. +    $(COMPILE) -c $<
  259.  
  260.  %.lo: %.c
  261.      @echo '$(LTCOMPILE) -c $<'; \
  262. -    $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
  263. -    @-sed -e 's/^\([^:]*\)\.o[     ]*:/\1.lo \1.o :/' \
  264. -      < .deps/$(*F).pp > .deps/$(*F).P; \
  265. -    tr ' ' '\012' < .deps/$(*F).pp \
  266. -      | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
  267. -        >> .deps/$(*F).P; \
  268. -    rm -f .deps/$(*F).pp
  269. +    $(LTCOMPILE) -c $<
  270. +
  271.  info-am:
  272.  info: info-am
  273.  dvi-am:
  274. --- ./texture.c    Thu Dec 16 20:50:24 1999
  275. +++ ../geekosphere-0.7/./texture.c    Mon Jul 10 15:24:30 2000
  276. @@ -62,6 +62,8 @@
  277.      return texture_id;
  278.  }
  279.  
  280. +/*
  281.  // Local variables:
  282.  // c-file-style:"cc-mode"
  283.  // End:
  284. +*/
  285. --- ./nurbs.c    Thu Dec 16 19:04:51 1999
  286. +++ ../geekosphere-0.7/./nurbs.c    Mon Jul 10 15:31:00 2000
  287. @@ -298,15 +298,25 @@
  288.      GLfloat s2o2 = sqrt(2.0) / 2.0;
  289.  
  290.      GLfloat ctlpoints[5][4] = {
  291. -    { 0.0, 0.0, r, 1.0 },
  292. -    { -r * s2o2, 0.0, r * s2o2, s2o2 },
  293. -    { -r, 0.0, 0.0, 1.0 },
  294. -    { -r * s2o2, 0.0, -r * s2o2, s2o2 },
  295. -    { 0.0, 0.0, -r, 1.0 }
  296. +    { 0.0, 0.0, 0.0 /* r */, 1.0 },
  297. +    { 0.0 /* -r * s2o2 */, 0.0, 0.0 /* r * s2o2 */, 0.0 /* s2o2 */ },
  298. +    { 0.0 /* -r */, 0.0, 0.0, 1.0 },
  299. +    { 0.0 /* -r * s2o2 */, 0.0, 0.0 /* -r * s2o2 */, 0.0 /* s2o2 */ },
  300. +    { 0.0, 0.0, 0.0 /* -r */, 1.0 }
  301.      };
  302.  
  303.      GLfloat knots[8] = { 0.0, 0.0, 0.0, 0.5, 0.5, 1.0, 1.0, 1.0 };
  304.  
  305. +    ctlpoints[0][2] = r;
  306. +    ctlpoints[1][0] = -r * s2o2;
  307. +    ctlpoints[1][2] = r * s2o2;
  308. +    ctlpoints[1][3] = s2o2;
  309. +    ctlpoints[2][0] = -r;
  310. +    ctlpoints[3][0] = -r * s2o2;
  311. +    ctlpoints[3][2] = -r * s2o2;
  312. +    ctlpoints[3][3] = s2o2;
  313. +    ctlpoints[4][2] = -r;
  314. +
  315.      profile.u.knot_count = 8;
  316.      profile.u.stride = 4;
  317.      profile.u.order = 3;
  318. @@ -380,6 +390,8 @@
  319.      }
  320.  }
  321.  
  322. +/*
  323.  // Local variables:
  324.  // c-file-style:"cc-mode"
  325.  // End:
  326. +*/
  327. --- ./rgb.c    Thu Dec 16 20:50:24 1999
  328. +++ ../geekosphere-0.7/./rgb.c    Mon Jul 10 15:24:22 2000
  329. @@ -222,6 +222,8 @@
  330.      return final;
  331.  }
  332.  
  333. +/*
  334.  // Local variables:
  335.  // c-file-style:"cc-mode"
  336.  // End:
  337. +*/
  338. --- ./rgb.h    Thu Dec 16 19:04:51 1999
  339. +++ ../geekosphere-0.7/./rgb.h    Mon Jul 10 15:29:03 2000
  340. @@ -9,6 +9,8 @@
  341.  
  342.  extern RGBImageRec *rgbImageLoad(char *);
  343.  
  344. +/*
  345.  // Local variables:
  346.  // c-file-style:"cc-mode"
  347.  // End:
  348. +*/
  349. --- ./prog.h    Thu Dec 16 20:50:24 1999
  350. +++ ../geekosphere-0.7/./prog.h    Mon Jul 10 15:22:39 2000
  351. @@ -268,6 +268,8 @@
  352.  
  353.  #endif PROG_H
  354.  
  355. +/*
  356.  // Local variables:
  357.  // c-file-style:"cc-mode"
  358.  // End:
  359. +*/
  360. --- ./object.c    Thu Dec 16 19:04:51 1999
  361. +++ ../geekosphere-0.7/./object.c    Mon Jul 10 15:24:14 2000
  362. @@ -230,6 +230,8 @@
  363.  
  364.  }
  365.  
  366. +/*
  367.  // Local variables:
  368.  // c-file-style:"cc-mode"
  369.  // End:
  370. +*/
  371. --- ./camera.c    Thu Dec 16 19:04:51 1999
  372. +++ ../geekosphere-0.7/./camera.c    Mon Jul 10 15:23:05 2000
  373. @@ -158,6 +158,8 @@
  374.      glMatrixMode(GL_MODELVIEW);
  375.  }
  376.  
  377. +/*
  378.  // Local variables:
  379.  // c-file-style:"cc-mode"
  380.  // End:
  381. +*/
  382. --- ./light.c    Thu Dec 16 19:04:51 1999
  383. +++ ../geekosphere-0.7/./light.c    Mon Jul 10 15:23:31 2000
  384. @@ -326,6 +326,8 @@
  385.  
  386.  }
  387.  
  388. +/*
  389.  // Local variables:
  390.  // c-file-style:"cc-mode"
  391.  // End:
  392. +*/
  393. --- ./material.c    Thu Dec 16 19:04:51 1999
  394. +++ ../geekosphere-0.7/./material.c    Mon Jul 10 15:23:59 2000
  395. @@ -53,6 +53,8 @@
  396.      obj->material = gkos_get_material(mat);
  397.  }
  398.  
  399. +/*
  400.  // Local variables:
  401.  // c-file-style:"cc-mode"
  402.  // End:
  403. +*/
  404. --- ./ltmain.sh    Thu Dec 16 19:04:51 1999
  405. +++ ../geekosphere-0.7/./ltmain.sh    Mon Jul 10 17:05:00 2000
  406. @@ -54,8 +54,8 @@
  407.  # Constants.
  408.  PROGRAM=ltmain.sh
  409.  PACKAGE=libtool
  410. -VERSION=1.3.3
  411. -TIMESTAMP=" (1.385.2.181 1999/07/02 15:49:11)"
  412. +VERSION=1.3.5
  413. +TIMESTAMP=" (1.385.2.206 2000/05/27 11:12:27)"
  414.  
  415.  default_mode=
  416.  help="Try \`$progname --help' for more information."
  417. @@ -435,7 +435,7 @@
  418.        fbsd_hideous_sh_bug=$base_compile
  419.  
  420.        # All platforms use -DPIC, to notify preprocessed assembler code.
  421. -      command="$base_compile $pic_flag -DPIC $srcfile"
  422. +      command="$base_compile $srcfile $pic_flag -DPIC"
  423.        if test "$build_old_libs" = yes; then
  424.      lo_libobj="$libobj"
  425.      dir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
  426. @@ -521,9 +521,17 @@
  427.        exit $error
  428.      fi
  429.  
  430. +    xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  431. +    if test "X$xdir" = "X$obj"; then
  432. +      xdir="."
  433. +    else
  434. +      xdir="$xdir"
  435. +    fi
  436. +    baseobj=`$echo "X$obj" | $Xsed -e "s%.*/%%"`
  437. +    libobj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
  438.      # Now arrange that obj and lo_libobj become the same file
  439. -    $show "$LN_S $obj $lo_libobj"
  440. -    if $run $LN_S $obj $lo_libobj; then
  441. +    $show "(cd $xdir && $LN_S $baseobj $libobj)"
  442. +    if $run eval '(cd $xdir && $LN_S $baseobj $libobj)'; then
  443.        exit 0
  444.      else
  445.        error=$?
  446. @@ -613,8 +621,6 @@
  447.    # libtool link mode
  448.    link)
  449.      modename="$modename: link"
  450. -    C_compiler="$CC" # save it, to compile generated C sources
  451. -    CC="$nonopt"
  452.      case "$host" in
  453.      *-*-cygwin* | *-*-mingw* | *-*-os2*)
  454.        # It is impossible to link a dll without this setting, and
  455. @@ -802,8 +808,8 @@
  456.        allow_undefined=yes
  457.        ;;
  458.      esac
  459. -    compile_command="$CC"
  460. -    finalize_command="$CC"
  461. +    compile_command="$nonopt"
  462. +    finalize_command="$nonopt"
  463.  
  464.      compile_rpath=
  465.      finalize_rpath=
  466. @@ -1691,7 +1697,7 @@
  467.  
  468.      irix)
  469.        major=`expr $current - $age + 1`
  470. -      versuffix="$major.$revision"
  471. +      versuffix=".$major"
  472.        verstring="sgi$major.$revision"
  473.  
  474.        # Add in all the interfaces that we are compatible with.
  475. @@ -1789,6 +1795,10 @@
  476.      *-*-cygwin* | *-*-mingw* | *-*-os2* | *-*-beos*)
  477.        # these systems don't actually have a c library (as such)!
  478.        ;;
  479. +        *-*-rhapsody*)
  480. +      # rhapsody is a little odd...
  481. +      deplibs="$deplibs -framework System"
  482. +      ;;
  483.      *)
  484.        # Add libc to deplibs on all other systems.
  485.        deplibs="$deplibs -lc"
  486. @@ -1851,7 +1861,7 @@
  487.        int main() { return 0; }
  488.  EOF
  489.        $rm conftest
  490. -      $C_compiler -o conftest conftest.c $deplibs
  491. +      $CC -o conftest conftest.c $deplibs
  492.        if test $? -eq 0 ; then
  493.          ldd_output=`ldd conftest`
  494.          for i in $deplibs; do
  495. @@ -1884,7 +1894,7 @@
  496.           # If $name is empty we are operating on a -L argument.
  497.            if test "$name" != "" ; then
  498.          $rm conftest
  499. -        $C_compiler -o conftest conftest.c $i
  500. +        $CC -o conftest conftest.c $i
  501.          # Did it work?
  502.          if test $? -eq 0 ; then
  503.            ldd_output=`ldd conftest`
  504. @@ -2047,13 +2057,20 @@
  505.      done
  506.  
  507.      # Ensure that we have .o objects for linkers which dislike .lo
  508. -    # (e.g. aix) incase we are running --disable-static
  509. +    # (e.g. aix) in case we are running --disable-static
  510.      for obj in $libobjs; do
  511. -      oldobj=`$echo "X$obj" | $Xsed -e "$lo2o"`
  512. -      if test ! -f $oldobj; then
  513. -        $show "${LN_S} $obj $oldobj"
  514. -        $run ${LN_S} $obj $oldobj || exit $?
  515. +      xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  516. +      if test "X$xdir" = "X$obj"; then
  517. +        xdir="."
  518. +      else
  519. +        xdir="$xdir"
  520.        fi
  521. +      baseobj=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  522. +      oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"`
  523. +      if test ! -f $xdir/$oldobj; then
  524. +        $show "(cd $xdir && ${LN_S} $baseobj $oldobj)"
  525. +        $run eval '(cd $xdir && ${LN_S} $baseobj $oldobj)' || exit $?
  526. +      fi
  527.      done
  528.  
  529.      # Use standard objects if they are pic
  530. @@ -2311,8 +2328,16 @@
  531.      # Just create a symlink.
  532.      $show $rm $libobj
  533.      $run $rm $libobj
  534. -    $show "$LN_S $obj $libobj"
  535. -    $run $LN_S $obj $libobj || exit $?
  536. +    xdir=`$echo "X$libobj" | $Xsed -e 's%/[^/]*$%%'`
  537. +    if test "X$xdir" = "X$libobj"; then
  538. +      xdir="."
  539. +    else
  540. +      xdir="$xdir"
  541. +    fi
  542. +    baseobj=`$echo "X$libobj" | $Xsed -e 's%^.*/%%'`
  543. +    oldobj=`$echo "X$baseobj" | $Xsed -e "$lo2o"`
  544. +    $show "(cd $xdir && $LN_S $oldobj $baseobj)"
  545. +    $run eval '(cd $xdir && $LN_S $oldobj $baseobj)' || exit $?
  546.        fi
  547.  
  548.        if test -n "$gentop"; then
  549. @@ -2598,16 +2623,21 @@
  550.        # linked before any other PIC object.  But we must not use
  551.        # pic_flag when linking with -static.  The problem exists in
  552.        # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  553. -      *-*-freebsd2*|*-*-freebsd3.0*)
  554. +      *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  555.          case "$compile_command " in
  556.          *" -static "*) ;;
  557.          *) pic_flag_for_symtable=" $pic_flag -DPIC -DFREEBSD_WORKAROUND";;
  558. +        esac;;
  559. +      *-*-hpux*)
  560. +        case "$compile_command " in
  561. +        *" -static "*) ;;
  562. +        *) pic_flag_for_symtable=" $pic_flag -DPIC";;
  563.          esac
  564.        esac
  565.  
  566.        # Now compile the dynamic symbol file.
  567. -      $show "(cd $output_objdir && $C_compiler -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  568. -      $run eval '(cd $output_objdir && $C_compiler -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  569. +      $show "(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  570. +      $run eval '(cd $output_objdir && $CC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  571.  
  572.        # Clean up the generated files.
  573.        $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  574. @@ -2776,7 +2806,7 @@
  575.  
  576.  # The HP-UX ksh and POSIX shell print the target directory to stdout
  577.  # if CDPATH is set.
  578. -if test \"\${CDPATH+set}\" = set; then CDPATH=; export CDPATH; fi
  579. +if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
  580.  
  581.  relink_command=\"$relink_command\"
  582.  
  583. @@ -2865,7 +2895,7 @@
  584.    fi"
  585.      else
  586.        echo >> $output "\
  587. -  program='$outputname$exeext'
  588. +  program='$outputname'
  589.    progdir=\"\$thisdir/$objdir\"
  590.  "
  591.      fi
  592. @@ -2901,13 +2931,21 @@
  593.        # Run the actual program with our arguments.
  594.  "
  595.      case $host in
  596. -    *-*-cygwin* | *-*-mingw | *-*-os2*)
  597.        # win32 systems need to use the prog path for dll
  598.        # lookup to work
  599. +    *-*-cygwin*)
  600. +      $echo >> $output "\
  601. +      exec \$progdir/\$program \${1+\"\$@\"}
  602. +"
  603. +      ;;
  604. +
  605. +    # Backslashes separate directories on plain windows
  606. +    *-*-mingw | *-*-os2*)
  607.        $echo >> $output "\
  608.        exec \$progdir\\\\\$program \${1+\"\$@\"}
  609.  "
  610.        ;;
  611. +
  612.      *)
  613.        $echo >> $output "\
  614.        # Export the path to the program.
  615. @@ -2995,14 +3033,21 @@
  616.        if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  617.      eval cmds=\"$old_archive_from_new_cmds\"
  618.        else
  619. -    # Ensure that we have .o objects in place incase we decided
  620. +    # Ensure that we have .o objects in place in case we decided
  621.      # not to build a shared library, and have fallen back to building
  622.      # static libs even though --disable-static was passed!
  623.      for oldobj in $oldobjs; do
  624.        if test ! -f $oldobj; then
  625. -        obj=`$echo "X$oldobj" | $Xsed -e "$o2lo"`
  626. -        $show "${LN_S} $obj $oldobj"
  627. -        $run ${LN_S} $obj $oldobj || exit $?
  628. +        xdir=`$echo "X$oldobj" | $Xsed -e 's%/[^/]*$%%'`
  629. +        if test "X$xdir" = "X$oldobj"; then
  630. +          xdir="."
  631. +        else
  632. +          xdir="$xdir"
  633. +        fi
  634. +        baseobj=`$echo "X$oldobj" | $Xsed -e 's%^.*/%%'`
  635. +        obj=`$echo "X$baseobj" | $Xsed -e "$o2lo"`
  636. +        $show "(cd $xdir && ${LN_S} $obj $baseobj)"
  637. +        $run eval '(cd $xdir && ${LN_S} $obj $baseobj)' || exit $?
  638.        fi
  639.      done
  640.  
  641. @@ -3672,8 +3717,10 @@
  642.      done
  643.  
  644.      if test -z "$run"; then
  645. -      # Export the shlibpath_var.
  646. -      eval "export $shlibpath_var"
  647. +      if test -n "$shlibpath_var"; then
  648. +        # Export the shlibpath_var.
  649. +        eval "export $shlibpath_var"
  650. +      fi
  651.  
  652.        # Restore saved enviroment variables
  653.        if test "${save_LC_ALL+set}" = set; then
  654. @@ -3690,8 +3737,10 @@
  655.        exit 1
  656.      else
  657.        # Display what would be done.
  658. -      eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  659. -      $echo "export $shlibpath_var"
  660. +      if test -n "$shlibpath_var"; then
  661. +        eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  662. +        $echo "export $shlibpath_var"
  663. +      fi
  664.        $echo "$cmd$args"
  665.        exit 0
  666.      fi
  667. --- ./ltconfig    Thu Dec 16 19:04:51 1999
  668. +++ ../geekosphere-0.7/./ltconfig    Mon Jul 10 17:04:58 2000
  669. @@ -53,7 +53,7 @@
  670.  
  671.  # Find the correct PATH separator.  Usually this is `:', but
  672.  # DJGPP uses `;' like DOS.
  673. -if test "X${PATH_SEPARATOR+set}" != "Xset"; then
  674. +if test "X${PATH_SEPARATOR+set}" != Xset; then
  675.    UNAME=${UNAME-`uname 2>/dev/null`}
  676.    case X$UNAME in
  677.      *-DOS) PATH_SEPARATOR=';' ;;
  678. @@ -63,9 +63,9 @@
  679.  
  680.  # The HP-UX ksh and POSIX shell print the target directory to stdout
  681.  # if CDPATH is set.
  682. -if test "${CDPATH+set}" = set; then CDPATH=; export CDPATH; fi
  683. +if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  684.  
  685. -if test "X${echo_test_string+set}" != "Xset"; then
  686. +if test "X${echo_test_string+set}" != Xset; then
  687.    # find a string as large as possible, as long as the shell can cope with it
  688.    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  689.      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  690. @@ -169,10 +169,10 @@
  691.  # Constants:
  692.  PROGRAM=ltconfig
  693.  PACKAGE=libtool
  694. -VERSION=1.3.3
  695. -TIMESTAMP=" (1.385.2.181 1999/07/02 15:49:11)"
  696. -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.c 1>&5'
  697. -ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.c $LIBS 1>&5'
  698. +VERSION=1.3.5
  699. +TIMESTAMP=" (1.385.2.206 2000/05/27 11:12:27)"
  700. +ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  701. +ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  702.  rm="rm -f"
  703.  
  704.  help="Try \`$progname --help' for more information."
  705. @@ -369,8 +369,8 @@
  706.  # Only set LANG and LC_ALL to C if already set.
  707.  # These must not be set unconditionally because not all systems understand
  708.  # e.g. LANG=C (notably SCO).
  709. -if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  710. -if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  711. +if test "X${LC_ALL+set}" = Xset; then LC_ALL=C; export LC_ALL; fi
  712. +if test "X${LANG+set}"   = Xset; then LANG=C;   export LANG;   fi
  713.  
  714.  if test -n "$cache_file" && test -r "$cache_file"; then
  715.    echo "loading cache $cache_file within ltconfig"
  716. @@ -462,7 +462,7 @@
  717.    # AIX sometimes has problems with the GCC collect2 program.  For some
  718.    # reason, if we set the COLLECT_NAMES environment variable, the problems
  719.    # vanish in a puff of smoke.
  720. -  if test "${COLLECT_NAMES+set}" != set; then
  721. +  if test "X${COLLECT_NAMES+set}" != Xset; then
  722.      COLLECT_NAMES=
  723.      export COLLECT_NAMES
  724.    fi
  725. @@ -663,7 +663,7 @@
  726.    link_static_flag='-static'
  727.  
  728.    case "$host_os" in
  729. -  beos* | irix5* | irix6* | osf3* | osf4*)
  730. +  beos* | irix5* | irix6* | osf3* | osf4* | osf5*)
  731.      # PIC is the default for these OSes.
  732.      ;;
  733.    aix*)
  734. @@ -718,7 +718,7 @@
  735.      # We can build DLLs from non-PIC.
  736.      ;;
  737.  
  738. -  osf3* | osf4*)
  739. +  osf3* | osf4* | osf5*)
  740.      # All OSF/1 code is PIC.
  741.      wl='-Wl,'
  742.      link_static_flag='-non_shared'
  743. @@ -1164,15 +1164,21 @@
  744.      # Extract the symbol export list from an `--export-all' def file,
  745.      # then regenerate the def file from the symbol export list, so that
  746.      # the compiled dll only exports the symbol export list.
  747. +    # Be careful not to strip the DATA tag left by newer dlltools.
  748.      export_symbols_cmds='test -f $objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~
  749.        test -f $objdir/$soname-ltdll.$objext || (cd $objdir && $CC -c $soname-ltdll.c)~
  750.        $DLLTOOL --export-all --exclude-symbols DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12 --output-def $objdir/$soname-def  $objdir/$soname-ltdll.$objext $libobjs $convenience~
  751. -      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]* ; *//" < $objdir/$soname-def > $export_symbols'
  752. +      sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $objdir/$soname-def > $export_symbols'
  753.  
  754. +    # If DATA tags from a recent dlltool are present, honour them!
  755.      archive_expsym_cmds='echo EXPORTS > $objdir/$soname-def~
  756.        _lt_hint=1;
  757. -      for symbol in `cat $export_symbols`; do
  758. -    echo "    \$symbol @ \$_lt_hint ; " >> $objdir/$soname-def;
  759. +      cat $export_symbols | while read symbol; do
  760. +        set dummy \$symbol;
  761. +        case \$# in
  762. +          2) echo "    \$2 @ \$_lt_hint ; " >> $objdir/$soname-def;;
  763. +          *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $objdir/$soname-def;;
  764. +        esac;
  765.      _lt_hint=`expr 1 + \$_lt_hint`;
  766.        done~
  767.        test -f $objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $0 > $objdir/$soname-ltdll.c~
  768. @@ -1187,7 +1193,7 @@
  769.      ;;
  770.  
  771.    netbsd*)
  772. -    if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  773. +    if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  774.        archive_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname -o $lib'
  775.        archive_expsym_cmds='$CC -shared $libobjs $deplibs $linkopts ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  776.      else
  777. @@ -1196,7 +1202,7 @@
  778.      fi
  779.      ;;
  780.  
  781. -  solaris*)
  782. +  solaris* | sysv5*)
  783.      if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
  784.        ld_shlibs=no
  785.        cat <<EOF 1>&2
  786. @@ -1244,7 +1250,12 @@
  787.        whole_archive_flag_spec=
  788.        ;;
  789.      *)
  790. -      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  791. +      # ancient GNU ld didn't support --whole-archive et. al.
  792. +      if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
  793. +        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  794. +      else
  795. +        whole_archive_flag_spec=
  796. +      fi
  797.        ;;
  798.      esac
  799.    fi
  800. @@ -1405,7 +1416,7 @@
  801.      old_archive_from_new_cmds='emximp -o $objdir/$libname.a $objdir/$libname.def'
  802.      ;;
  803.  
  804. -  osf3* | osf4*)
  805. +  osf3*)
  806.      if test "$with_gcc" = yes; then
  807.        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  808.        archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  809. @@ -1417,6 +1428,24 @@
  810.      hardcode_libdir_separator=:
  811.      ;;
  812.  
  813. +  osf4* | osf5*)  # As osf3* with the addition of the -msym flag
  814. +    if test "$with_gcc" = yes; then
  815. +      allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  816. +      archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $linkopts ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  817. +    else
  818. +      allow_undefined_flag=' -expect_unresolved \*'
  819. +      archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linkopts -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  820. +    fi
  821. +    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  822. +    hardcode_libdir_separator=:
  823. +    ;;
  824. +  rhapsody*)
  825. +    archive_cmds='$CC -bundle -undefined suppress -o $lib $libobjs $deplibs $linkopts'
  826. +    hardcode_libdir_flags_spec='-L$libdir'
  827. +    hardcode_direct=yes
  828. +    hardcode_shlibpath_var=no
  829. +    ;;
  830. +                                       
  831.    sco3.2v5*)
  832.      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  833.      hardcode_shlibpath_var=no
  834. @@ -1449,7 +1478,13 @@
  835.      ;;
  836.  
  837.    sysv4)
  838. -    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  839. +    if test "x$host_vendor" = xsequent; then
  840. +      # Use $CC to link under sequent, because it throws in some extra .o 
  841. +      # files that make .init and .fini sections work.
  842. +      archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $linkopts'
  843. +    else
  844. +      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  845. +    fi
  846.      runpath_var='LD_RUN_PATH'
  847.      hardcode_shlibpath_var=no
  848.      hardcode_direct=no #Motorola manual says yes, but my tests say they lie 
  849. @@ -1461,6 +1496,18 @@
  850.      export_dynamic_flag_spec='-Bexport'
  851.      ;;
  852.  
  853. +  sysv5*)
  854. +    no_undefined_flag=' -z text'
  855. +    # $CC -shared without GNU ld will not create a library from C++
  856. +    # object files and a static libstdc++, better avoid it by now
  857. +    archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linkopts'
  858. +    archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  859. +        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linkopts~$rm $lib.exp'
  860. +    hardcode_libdir_flag_spec=
  861. +    hardcode_shlibpath_var=no
  862. +    runpath_var='LD_RUN_PATH'
  863. +    ;;
  864. +
  865.    uts4*)
  866.      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  867.      hardcode_libdir_flag_spec='-L$libdir'
  868. @@ -1474,16 +1521,30 @@
  869.      ;;
  870.  
  871.    sysv4*MP*)
  872. -    if test -d /usr/nec ;then
  873. -    # archive_cmds='$LD -G -z text -h $soname -o $lib$libobjs$deplibs'
  874. -    archive_cmds='$LD -G -h $soname -o $lib$libobjs$deplibs'
  875. +    if test -d /usr/nec; then
  876. +      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  877. +      hardcode_shlibpath_var=no
  878. +      runpath_var=LD_RUN_PATH
  879. +      hardcode_runpath_var=yes
  880. +      ld_shlibs=yes
  881. +    fi
  882. +    ;;
  883. +
  884. +  sysv4.2uw2*)
  885. +    archive_cmds='$LD -G -o $lib $libobjs $deplibs $linkopts'
  886. +    hardcode_direct=yes
  887. +    hardcode_minus_L=no
  888.      hardcode_shlibpath_var=no
  889. -    runpath_var=LD_RUN_PATH
  890.      hardcode_runpath_var=yes
  891. -    ld_shlibs=yes
  892. -    fi
  893. +    runpath_var=LD_RUN_PATH
  894.      ;;
  895.  
  896. +  unixware7*)
  897. +    archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linkopts'
  898. +    runpath_var='LD_RUN_PATH'
  899. +    hardcode_shlibpath_var=no
  900. +    ;;
  901. +
  902.    *)
  903.      ld_shlibs=no
  904.      ;;
  905. @@ -1589,11 +1650,11 @@
  906.  main(){nm_test_var='a';nm_test_func();return(0);}
  907.  EOF
  908.  
  909. -  echo "$progname:1592: checking if global_symbol_pipe works" >&5
  910. -  if { (eval echo $progname:1593: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.$objext; then
  911. +  echo "$progname:1653: checking if global_symbol_pipe works" >&5
  912. +  if { (eval echo $progname:1654: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; } && test -s conftest.$objext; then
  913.      # Now try to grab the symbols.
  914.      nlist=conftest.nm
  915. -    if { echo "$progname:1596: eval \"$NM conftest.$objext | $global_symbol_pipe > $nlist\"" >&5; eval "$NM conftest.$objext | $global_symbol_pipe > $nlist 2>&5"; } && test -s "$nlist"; then
  916. +    if { echo "$progname:1657: eval \"$NM conftest.$objext | $global_symbol_pipe > $nlist\"" >&5; eval "$NM conftest.$objext | $global_symbol_pipe > $nlist 2>&5"; } && test -s "$nlist"; then
  917.  
  918.        # Try sorting and uniquifying the output.
  919.        if sort "$nlist" | uniq > "$nlist"T; then
  920. @@ -1645,7 +1706,7 @@
  921.        save_CFLAGS="$CFLAGS"
  922.        LIBS="conftstm.$objext"
  923.        CFLAGS="$CFLAGS$no_builtin_flag"
  924. -      if { (eval echo $progname:1648: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  925. +      if { (eval echo $progname:1709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
  926.          pipe_works=yes
  927.        else
  928.          echo "$progname: failed program was:" >&5
  929. @@ -1787,8 +1848,9 @@
  930.  
  931.  bsdi4*)
  932.    version_type=linux
  933. -  library_names_spec='${libname}.so$major ${libname}.so'
  934. -  soname_spec='${libname}.so'
  935. +  need_version=no
  936. +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  937. +  soname_spec='${libname}${release}.so$major'
  938.    finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  939.    shlibpath_var=LD_LIBRARY_PATH
  940.    deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  941. @@ -1796,6 +1858,7 @@
  942.    file_magic_test_file=/shlib/libc.so
  943.    sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  944.    sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  945. +  export_dynamic_flag_spec=-rdynamic
  946.    # the default ld.so.conf also contains /usr/contrib/lib and
  947.    # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  948.    # libtool to hard-code these into programs
  949. @@ -1841,10 +1904,9 @@
  950.        need_version=yes
  951.        ;;
  952.    esac
  953. -  finish_cmds='PATH="\$PATH:/sbin" OBJFORMAT="'"$objformat"'" ldconfig -m $libdir'
  954.    shlibpath_var=LD_LIBRARY_PATH
  955.    case "$host_os" in
  956. -  freebsd2* | freebsd3.[01]*)
  957. +  freebsd2* | freebsd3.[01]* | freebsdelf3.[01]*)
  958.      shlibpath_overrides_runpath=yes
  959.      ;;
  960.    *) # from 3.2 on
  961. @@ -1875,6 +1937,14 @@
  962.    soname_spec='${libname}${release}.sl$major'
  963.    # HP-UX runs *really* slowly unless shared libraries are mode 555.
  964.    postinstall_cmds='chmod 555 $lib'
  965. +  case "$host_os" in
  966. +  hpux10.20*)
  967. +    # TODO:  Does this work for hpux-11 too?
  968. +    deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  969. +    file_magic_cmd=/usr/bin/file
  970. +    file_magic_test_file=/usr/lib/libc.sl
  971. +    ;;
  972. +  esac
  973.    ;;
  974.  
  975.  irix5* | irix6*)
  976. @@ -1881,8 +1951,8 @@
  977.    version_type=irix
  978.    need_lib_prefix=no
  979.    need_version=no
  980. -  soname_spec='${libname}${release}.so.$major'
  981. -  library_names_spec='${libname}${release}.so.$versuffix ${libname}${release}.so.$major ${libname}${release}.so $libname.so'
  982. +  soname_spec='${libname}${release}.so$versuffix'
  983. +  library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  984.    case "$host_os" in
  985.    irix5*)
  986.      libsuff= shlibsuff=
  987. @@ -1896,8 +1966,6 @@
  988.      *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
  989.      *) libsuff= shlibsuff= libmagic=never-match;;
  990.      esac
  991. -    # this will be overridden with pass_all, but let us keep it just in case
  992. -    deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
  993.      ;;
  994.    esac
  995.    shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  996. @@ -1924,9 +1992,7 @@
  997.    finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  998.    shlibpath_var=LD_LIBRARY_PATH
  999.    shlibpath_overrides_runpath=no
  1000. -  deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  1001. -  file_magic_cmd=/usr/bin/file
  1002. -  file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  1003. +  deplibs_check_method=pass_all
  1004.  
  1005.    if test -f /lib/ld.so.1; then
  1006.      dynamic_linker='GNU ld.so'
  1007. @@ -1972,7 +2038,7 @@
  1008.    shlibpath_var=LIBPATH
  1009.    ;;
  1010.  
  1011. -osf3* | osf4*)
  1012. +osf3* | osf4* | osf5*)
  1013.    version_type=osf
  1014.    need_version=no
  1015.    soname_spec='${libname}${release}.so'
  1016. @@ -1987,6 +2053,14 @@
  1017.    sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  1018.    ;;
  1019.  
  1020. +rhapsody*)
  1021. +  version_type=sunos
  1022. +  library_names_spec='${libname}.so'
  1023. +  soname_spec='${libname}.so'
  1024. +  shlibpath_var=DYLD_LIBRARY_PATH
  1025. +  deplibs_check_method=pass_all
  1026. +  ;;
  1027. +
  1028.  sco3.2v5*)
  1029.    version_type=osf
  1030.    soname_spec='${libname}${release}.so$major'
  1031. @@ -2027,6 +2101,10 @@
  1032.    soname_spec='${libname}${release}.so$major'
  1033.    shlibpath_var=LD_LIBRARY_PATH
  1034.    case "$host_vendor" in
  1035. +    sequent)
  1036. +      file_magic_cmd='/bin/file'
  1037. +      deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  1038. +      ;;
  1039.      ncr)
  1040.        deplibs_check_method='pass_all'
  1041.        ;;
  1042. @@ -2167,7 +2245,7 @@
  1043.  if eval "test \"`echo '$''{'lt_cv_dlopen'+set}'`\" != set"; then
  1044.    lt_cv_dlopen=no lt_cv_dlopen_libs=
  1045.  echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
  1046. -echo "$progname:2170: checking for dlopen in -ldl" >&5
  1047. +echo "$progname:2248: checking for dlopen in -ldl" >&5
  1048.  ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
  1049.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1050.    echo $ac_n "(cached) $ac_c" 1>&6
  1051. @@ -2175,10 +2253,13 @@
  1052.    ac_save_LIBS="$LIBS"
  1053.  LIBS="-ldl  $LIBS"
  1054.  cat > conftest.$ac_ext <<EOF
  1055. -#line 2178 "ltconfig"
  1056. +#line 2256 "ltconfig"
  1057.  /* Override any gcc2 internal prototype to avoid an error.  */
  1058.  /* We use char because int might match the return type of a gcc2
  1059.      builtin and then its argument prototype would still apply.  */
  1060. +#ifdef __cplusplus
  1061. +extern "C"
  1062. +#endif
  1063.  char dlopen();
  1064.  
  1065.  int main() {
  1066. @@ -2185,7 +2266,7 @@
  1067.  dlopen()
  1068.  ; return 0; }
  1069.  EOF
  1070. -if { (eval echo $progname:2188: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1071. +if { (eval echo $progname:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1072.    rm -rf conftest*
  1073.    eval "ac_cv_lib_$ac_lib_var=yes"
  1074.  else
  1075. @@ -2204,12 +2285,12 @@
  1076.  else
  1077.    echo "$ac_t""no" 1>&6
  1078.  echo $ac_n "checking for dlopen""... $ac_c" 1>&6
  1079. -echo "$progname:2207: checking for dlopen" >&5
  1080. +echo "$progname:2288: checking for dlopen" >&5
  1081.  if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
  1082.    echo $ac_n "(cached) $ac_c" 1>&6
  1083.  else
  1084.    cat > conftest.$ac_ext <<EOF
  1085. -#line 2212 "ltconfig"
  1086. +#line 2293 "ltconfig"
  1087.  /* System header to define __stub macros and hopefully few prototypes,
  1088.      which can conflict with char dlopen(); below.  */
  1089.  #include <assert.h>
  1090. @@ -2216,6 +2297,9 @@
  1091.  /* Override any gcc2 internal prototype to avoid an error.  */
  1092.  /* We use char because int might match the return type of a gcc2
  1093.      builtin and then its argument prototype would still apply.  */
  1094. +#ifdef __cplusplus
  1095. +extern "C"
  1096. +#endif
  1097.  char dlopen();
  1098.  
  1099.  int main() {
  1100. @@ -2231,7 +2315,7 @@
  1101.  
  1102.  ; return 0; }
  1103.  EOF
  1104. -if { (eval echo $progname:2234: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1105. +if { (eval echo $progname:2318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1106.    rm -rf conftest*
  1107.    eval "ac_cv_func_dlopen=yes"
  1108.  else
  1109. @@ -2248,7 +2332,7 @@
  1110.  else
  1111.    echo "$ac_t""no" 1>&6
  1112.  echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
  1113. -echo "$progname:2251: checking for dld_link in -ldld" >&5
  1114. +echo "$progname:2335: checking for dld_link in -ldld" >&5
  1115.  ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
  1116.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1117.    echo $ac_n "(cached) $ac_c" 1>&6
  1118. @@ -2256,10 +2340,13 @@
  1119.    ac_save_LIBS="$LIBS"
  1120.  LIBS="-ldld  $LIBS"
  1121.  cat > conftest.$ac_ext <<EOF
  1122. -#line 2259 "ltconfig"
  1123. +#line 2343 "ltconfig"
  1124.  /* Override any gcc2 internal prototype to avoid an error.  */
  1125.  /* We use char because int might match the return type of a gcc2
  1126.      builtin and then its argument prototype would still apply.  */
  1127. +#ifdef __cplusplus
  1128. +extern "C"
  1129. +#endif
  1130.  char dld_link();
  1131.  
  1132.  int main() {
  1133. @@ -2266,7 +2353,7 @@
  1134.  dld_link()
  1135.  ; return 0; }
  1136.  EOF
  1137. -if { (eval echo $progname:2269: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1138. +if { (eval echo $progname:2356: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1139.    rm -rf conftest*
  1140.    eval "ac_cv_lib_$ac_lib_var=yes"
  1141.  else
  1142. @@ -2285,12 +2372,12 @@
  1143.  else
  1144.    echo "$ac_t""no" 1>&6
  1145.  echo $ac_n "checking for shl_load""... $ac_c" 1>&6
  1146. -echo "$progname:2288: checking for shl_load" >&5
  1147. +echo "$progname:2375: checking for shl_load" >&5
  1148.  if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
  1149.    echo $ac_n "(cached) $ac_c" 1>&6
  1150.  else
  1151.    cat > conftest.$ac_ext <<EOF
  1152. -#line 2293 "ltconfig"
  1153. +#line 2380 "ltconfig"
  1154.  /* System header to define __stub macros and hopefully few prototypes,
  1155.      which can conflict with char shl_load(); below.  */
  1156.  #include <assert.h>
  1157. @@ -2297,6 +2384,9 @@
  1158.  /* Override any gcc2 internal prototype to avoid an error.  */
  1159.  /* We use char because int might match the return type of a gcc2
  1160.      builtin and then its argument prototype would still apply.  */
  1161. +#ifdef __cplusplus
  1162. +extern "C"
  1163. +#endif
  1164.  char shl_load();
  1165.  
  1166.  int main() {
  1167. @@ -2312,7 +2402,7 @@
  1168.  
  1169.  ; return 0; }
  1170.  EOF
  1171. -if { (eval echo $progname:2315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1172. +if { (eval echo $progname:2405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1173.    rm -rf conftest*
  1174.    eval "ac_cv_func_shl_load=yes"
  1175.  else
  1176. @@ -2330,7 +2420,7 @@
  1177.  else
  1178.    echo "$ac_t""no" 1>&6
  1179.  echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
  1180. -echo "$progname:2333: checking for shl_load in -ldld" >&5
  1181. +echo "$progname:2423: checking for shl_load in -ldld" >&5
  1182.  ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
  1183.  if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
  1184.    echo $ac_n "(cached) $ac_c" 1>&6
  1185. @@ -2338,11 +2428,14 @@
  1186.    ac_save_LIBS="$LIBS"
  1187.  LIBS="-ldld  $LIBS"
  1188.  cat > conftest.$ac_ext <<EOF
  1189. -#line 2341 "ltconfig"
  1190. +#line 2431 "ltconfig"
  1191.  #include "confdefs.h"
  1192.  /* Override any gcc2 internal prototype to avoid an error.  */
  1193.  /* We use char because int might match the return type of a gcc2
  1194.      builtin and then its argument prototype would still apply.  */
  1195. +#ifdef __cplusplus
  1196. +extern "C"
  1197. +#endif
  1198.  char shl_load();
  1199.  
  1200.  int main() {
  1201. @@ -2349,7 +2442,7 @@
  1202.  shl_load()
  1203.  ; return 0; }
  1204.  EOF
  1205. -if { (eval echo $progname:2352: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1206. +if { (eval echo $progname:2445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
  1207.    rm -rf conftest*
  1208.    eval "ac_cv_lib_$ac_lib_var=yes"
  1209.  else
  1210. @@ -2392,17 +2485,17 @@
  1211.  for ac_hdr in dlfcn.h; do
  1212.  ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
  1213.  echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
  1214. -echo "$progname:2395: checking for $ac_hdr" >&5
  1215. +echo "$progname:2488: checking for $ac_hdr" >&5
  1216.  if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
  1217.    echo $ac_n "(cached) $ac_c" 1>&6
  1218.  else
  1219.    cat > conftest.$ac_ext <<EOF
  1220. -#line 2400 "ltconfig"
  1221. +#line 2493 "ltconfig"
  1222.  #include <$ac_hdr>
  1223.  int fnord = 0;
  1224.  EOF
  1225. -ac_try="$ac_compile conftest.$ac_ext >/dev/null 2>conftest.out"
  1226. -{ (eval echo $progname:2405: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1227. +ac_try="$ac_compile >/dev/null 2>conftest.out"
  1228. +{ (eval echo $progname:2498: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
  1229.  ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
  1230.  if test -z "$ac_err"; then
  1231.    rm -rf conftest*
  1232. @@ -2430,7 +2523,7 @@
  1233.      LIBS="$lt_cv_dlopen_libs $LIBS"
  1234.  
  1235.    echo $ac_n "checking whether a program can dlopen itself""... $ac_c" 1>&6
  1236. -echo "$progname:2433: checking whether a program can dlopen itself" >&5
  1237. +echo "$progname:2526: checking whether a program can dlopen itself" >&5
  1238.  if test "${lt_cv_dlopen_self+set}" = set; then
  1239.    echo $ac_n "(cached) $ac_c" 1>&6
  1240.  else
  1241. @@ -2438,7 +2531,7 @@
  1242.      lt_cv_dlopen_self=cross
  1243.    else
  1244.      cat > conftest.c <<EOF
  1245. -#line 2441 "ltconfig"
  1246. +#line 2534 "ltconfig"
  1247.  
  1248.  #if HAVE_DLFCN_H
  1249.  #include <dlfcn.h>
  1250. @@ -2484,7 +2577,7 @@
  1251.             if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); } 
  1252.  
  1253.  EOF
  1254. -if { (eval echo $progname:2487: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  1255. +if { (eval echo $progname:2580: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  1256.  then
  1257.    lt_cv_dlopen_self=yes
  1258.  else
  1259. @@ -2503,7 +2596,7 @@
  1260.    if test "$lt_cv_dlopen_self" = yes; then
  1261.      LDFLAGS="$LDFLAGS $link_static_flag"
  1262.    echo $ac_n "checking whether a statically linked program can dlopen itself""... $ac_c" 1>&6
  1263. -echo "$progname:2506: checking whether a statically linked program can dlopen itself" >&5
  1264. +echo "$progname:2599: checking whether a statically linked program can dlopen itself" >&5
  1265.  if test "${lt_cv_dlopen_self_static+set}" = set; then
  1266.    echo $ac_n "(cached) $ac_c" 1>&6
  1267.  else
  1268. @@ -2511,7 +2604,7 @@
  1269.      lt_cv_dlopen_self_static=cross
  1270.    else
  1271.      cat > conftest.c <<EOF
  1272. -#line 2514 "ltconfig"
  1273. +#line 2607 "ltconfig"
  1274.  
  1275.  #if HAVE_DLFCN_H
  1276.  #include <dlfcn.h>
  1277. @@ -2557,7 +2650,7 @@
  1278.      if(ptr1 || ptr2) { dlclose(self); exit(0); } } exit(1); } 
  1279.  
  1280.  EOF
  1281. -if { (eval echo $progname:2560: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  1282. +if { (eval echo $progname:2653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
  1283.  then
  1284.    lt_cv_dlopen_self_static=yes
  1285.  else
  1286. @@ -2649,7 +2742,7 @@
  1287.  # NOTE: Changes made to this file will be lost: look at ltconfig or ltmain.sh.
  1288.  #
  1289.  # Copyright (C) 1996-1999 Free Software Foundation, Inc.
  1290. -# Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  1291. +# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  1292.  #
  1293.  # This program is free software; you can redistribute it and/or modify
  1294.  # it under the terms of the GNU General Public License as published by
  1295. @@ -2675,7 +2768,7 @@
  1296.  
  1297.  # The HP-UX ksh and POSIX shell print the target directory to stdout
  1298.  # if CDPATH is set.
  1299. -if test "\${CDPATH+set}" = set; then CDPATH=; export CDPATH; fi
  1300. +if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  1301.  
  1302.  ### BEGIN LIBTOOL CONFIG
  1303.  EOF
  1304. @@ -2938,7 +3031,7 @@
  1305.  # AIX sometimes has problems with the GCC collect2 program.  For some
  1306.  # reason, if we set the COLLECT_NAMES environment variable, the problems
  1307.  # vanish in a puff of smoke.
  1308. -if test "${COLLECT_NAMES+set}" != set; then
  1309. +if test "X${COLLECT_NAMES+set}" != Xset; then
  1310.    COLLECT_NAMES=
  1311.    export COLLECT_NAMES
  1312.  fi
  1313. @@ -2948,6 +3041,10 @@
  1314.  
  1315.    # Append the ltmain.sh script.
  1316.    sed '$q' "$ltmain" >> "$ofile" || (rm -f "$ofile"; exit 1)
  1317. +  # We use sed instead of cat because bash on DJGPP gets confused if
  1318. +  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
  1319. +  # text mode, it properly converts lines to CR/LF.  This bash problem
  1320. +  # is reportedly fixed, but why not run on old versions too?
  1321.  
  1322.    chmod +x "$ofile"
  1323.    ;;
  1324. --- ./about.c    Thu Dec 16 19:04:51 1999
  1325. +++ ../geekosphere-0.7/./about.c    Mon Jul 10 15:23:22 2000
  1326. @@ -58,6 +58,8 @@
  1327.      gtk_widget_grab_focus(button);
  1328.  }
  1329.  
  1330. +/*
  1331.  // Local variables:
  1332.  // c-file-style:"cc-mode"
  1333.  // End:
  1334. +*/
  1335.